﻿/*===================================================================================
	TASK 6:                                              { Operators and Expressions}
	Write an expression that checks if given point (x,y) is within a circle K(O, 5).     
===================================================================================*/

using System;

class PointWithinOrNotACircle
{
    static void Main()
    {
        //float pointX=2f;
        //float pointY=3f;
        Console.Write("Enter X:");
        float pointX =float.Parse(Console.ReadLine());
        Console.Write("Enter Y:");
        float pointY = float.Parse(Console.ReadLine());
        
        float condition=(pointX*pointX)+(pointY*pointY);

        if (condition<=25)
        {
            Console.WriteLine("Point is within a circle K(0,5)");
        }

        else
        {
            Console.WriteLine("Point isn't within a circle K(0,5)");
        }
    }
}

